<template>
  <div>
    <h3>二维码扫描示例</h3>
    <QrCodeScanner @scan-success="handleScanSuccess" />
  </div>
</template>

<script setup>
import QrCodeScanner from './components/QrCodeScanner.vue'; // 假设组件路径

const handleScanSuccess = (result) => {
  console.log('扫描结果:', result);
  // 处理扫描结果，如跳转页面、解析数据等
};
</script>